package com.yunpeng.aidevice.common.dto.save;

import java.io.Serializable;

/**
 * OrgSaveDTO 组织机构保存对象
 *
 * @author : Moore(hemw)
 * @date : 2020-04-26
 */
public class OrgSaveDTO implements Serializable {

    /**
     * 代码
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 上级节点
     */
    private String parentCode;
    /**
     * 上级节点编号
     */
    private String parentNumber;
    /**
     * 节点路径
     */
    private String path;
    /**
     * 简称
     */
    private String simpleName;
    /**
     * 是否禁用
     */
    private Boolean disabled;

    /**
     * 商户代码
     */
    private String merchantCode;
    /**
     * 组织编号
     */
    private String number;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getSimpleName() {
        return simpleName;
    }

    public void setSimpleName(String simpleName) {
        this.simpleName = simpleName;
    }

    public Boolean getDisabled() {
        if (disabled == null) {
            disabled = false;
        }
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getParentNumber() {
        return parentNumber;
    }

    public void setParentNumber(String parentNumber) {
        this.parentNumber = parentNumber;
    }

    @Override
    public String toString() {
        return "OrgSaveDTO{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", parentCode='" + parentCode + '\'' +
                ", parentNumber='" + parentNumber + '\'' +
                ", path='" + path + '\'' +
                ", simpleName='" + simpleName + '\'' +
                ", disabled=" + disabled +
                ", merchantCode='" + merchantCode + '\'' +
                ", number='" + number + '\'' +
                '}';
    }
}
